package com.heima.wemedia.feign;

import com.heima.model.user.pojos.ApUser;
import com.heima.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author rookie001
 * @creat 2023-06-24-20:33
 */
@RestController
public class WmUserClient {
    @Autowired
    private WmUserService wmUserService;
    //同步到wmuser 生成自媒体账号
    @PostMapping("/api/v1/auth/authPass")
    public void saveUser(ApUser apUser) {
         wmUserService.saveUser(apUser);
    }
}
